package SV_CERT_INVALID;

import java.security.cert.*;
import java.io.*;

public class Vulnerable {
    public static void generateClientCertificate(final byte[] certEncoded) throws CertificateException{
        CertificateFactory certFactory = CertificateFactory.getInstance("X.509");
        X509Certificate x509Cert = (X509Certificate) certFactory.generateCertificate(new ByteArrayInputStream(certEncoded));
    }
}
